package com.example.demo.react;

public class NewReleasePrice implements Price {

    /**
     *
     */
    @Override
    public int getPriceCode() {
        return Movie.NEW_RELEASE;
    }

    @Override
    public double getCharge(int dayRented) {
        return dayRented * 3;
    }

    @Override
    public int getFrequentRenterPoint(int dayRented) {
        return dayRented > 1 ? 2 : 1;
    }
}
